import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './container/app.js'
import { createStore } from 'redux';
import store from './store/index.js'
import PlayerInfo from './component/player/index.js'
import TeamView from './component/team/index.js'
import GameDetailView from './component/game/index.js'

import { Router, Route, hashHistory } from 'react-router'


render(
    <Provider store={store}>
        <Router history={hashHistory}>
            <Route path="/" component={App} />
            <Route path="/Game" component={GameDetailView} />
            <Route path="/Player/:id/:backColor/:playerName" component={PlayerInfo} />
            <Route path="/Team/:name/:city/:img/:mark/:conference/:division/:ppg/:rpg/:apg/:oppg/:conferenceRank/:divisionRank/:teamId" component={TeamView} />
        </Router>
    </Provider>,
    document.getElementById('app')
);
